home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / tclX7.3a-p1 / tclsrc / Makefile < prev    next >
Encoding:
Makefile  |  1994-01-25  |  4.1 KB  |  109 lines

  1. # Generated automatically from Makefile.in by configure.
  2. #
  3. # Makefile --
  4. #
  5. # Makefile for Extended Tcl package library.  Also generates help files
  6. # for both standard and Extended Tcl.  This assumes that Tcl has compiled
  7. # successfully, as it is run here.
  8. #------------------------------------------------------------------------------
  9. # Copyright 1992-1993 Karl Lehenbauer and Mark Diekhans.
  10. #
  11. # Permission to use, copy, modify, and distribute this software and its
  12. # documentation for any purpose and without fee is hereby granted, provided
  13. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  14. # Mark Diekhans make no representations about the suitability of this
  15. # software for any purpose.  It is provided "as is" without express or
  16. # implied warranty.
  17. #------------------------------------------------------------------------------
  18. # $Id: Makefile.in,v 3.2 1993/11/25 05:03:37 markd Exp $
  19. #------------------------------------------------------------------------------
  20. #
  21. SHELL = /bin/sh
  22.  
  23. #------------------------------------------------------------------------------
  24. # Autoconfig defines that can be overridden in Config.mk
  25.  
  26. srcdir            = .
  27. srcbasedir        = /home/david/src/tcldev/tclX7.3a-p1
  28. bldbasedir        = /home/david/src/tcldev/tclX7.3a-p1
  29. VPATH             = .
  30. prefix            = $(ROOT)/usr
  31. exec_prefix       = ${prefix}
  32.  
  33. #------------------------------------------------------------------------------
  34. # Include user-editable defines.
  35.  
  36. include ${bldbasedir}/Config.mk
  37.  
  38. #------------------------------------------------------------------------------
  39.  
  40. TCL.TLIB       = ${bldbasedir}/tclmaster/tcl.tlib
  41. TCL.TNDX       = ${bldbasedir}/tclmaster/tcl.tndx
  42. TCLINIT.TCL    = ${bldbasedir}/tclmaster/TclInit.tcl
  43. BUILDIDX.TCL   = ${bldbasedir}/tclmaster/buildidx.tcl
  44. LOADOUSTER.TCL = ${bldbasedir}/tclmaster/loadouster.tcl
  45. HELP           = ${bldbasedir}/tclmaster/help
  46. HELPSRC        = ${srcbasedir}/tclhelp
  47. TCLMANPAGES    = ${srcbasedir}/tools/tclmanpages
  48. BLDMANHELP     = ../runtcl ${srcbasedir}/tools/bldmanhelp
  49.  
  50. #------------------------------------------------------------------------------
  51.  
  52. TCL_SRCS = arrayprocs.tcl   compat.tcl       convlib.tcl      edprocs.tcl    \
  53.            forfile.tcl      globrecur.tcl    help.tcl         profrep.tcl    \
  54.            pushd.tcl        setfuncs.tcl     showproc.tcl     stringfile.tcl \
  55.            tcllib.tcl       fmath.tcl        tclshell.tcl     buildhelp.tcl  \
  56.            parray.tcl       ${TCL_UCB_SRC}/library/parray.tcl
  57.  
  58. #------------------------------------------------------------------------------
  59.  
  60. all: ${TCLINIT.TCL} ${BUILDHELP.TCL} ${BUILDIDX.TCL} ${LOADOUSTER.TCL} \
  61.      ${TCL.TLIB} HELPCP
  62.  
  63. ${TCLINIT.TCL}: TclInit.tcl
  64.     -rm -f ${TCLINIT.TCL} 
  65.     cp ${srcdir}/TclInit.tcl ${TCLINIT.TCL}
  66.  
  67. ${BUILDIDX.TCL}: buildidx.tcl
  68.     -rm -f ${BUILDIDX.TCL}
  69.     cp ${srcdir}/buildidx.tcl ${BUILDIDX.TCL}
  70.  
  71. ${LOADOUSTER.TCL}: loadouster.tcl
  72.     -rm -f ${LOADOUSTER.TCL}
  73.     cp ${srcdir}/loadouster.tcl ${LOADOUSTER.TCL}
  74.  
  75. ${TCL.TLIB}: ${TCL_SRCS} ${BUILDIDX.TCL} ${TCLINIT.TCL}
  76.     -rm -f ${TCL.TLIB} ${TCL.TNDX}
  77.     (cd ${srcdir}; cat ${TCL_SRCS}) | \
  78.         egrep -v '^#$$|^#  *|^#-|^#=|^  *#' > $@
  79.     ../runtcl -c "buildpackageindex ${TCL.TLIB}"
  80.  
  81. #------------------------------------------------------------------------------
  82. # Copy help files to the master directory.
  83. #
  84.  
  85. HELPCP: ${HELP}/Tcl.brf ${HELP}/TclX.brf
  86.  
  87. ${HELP}/Tcl.brf ${HELP}/TclX.brf: ${HELPSRC}/Tcl.brf ${HELPSRC}/TclX.brf
  88.     ${bldbasedir}/tools/cphelpdir ${HELPSRC} ${HELP}
  89.  
  90. #------------------------------------------------------------------------------
  91. # Build help for Tcl & TclX.
  92.  
  93. buildtclhelp: ${TCLINIT.TCL} ${TCL.TLIB}
  94.     rm -rf ${HELPSRC}
  95.     mkdir ${HELPSRC}
  96.     ${BLDMANHELP} ${TCL_UCB_SRC}/doc ${TCLMANPAGES} ${HELPSRC} Tcl.brf
  97.     ../runtcl -c "buildhelp ${HELPSRC} TclX.brf ${srcbasedir}/man/TclX.n"
  98.     rm -rf ${HELP}    
  99.  
  100. #------------------------------------------------------------------------------
  101. # Nothing to clean here, tclmaster is cleaned at the top level.
  102. clean:
  103.  
  104. #------------------------------------------------------------------------------
  105. # Restore to the distributed state.
  106.  
  107. distclean: clean
  108.     rm -f Makefile
  109.